Skip to content

FQ dest config in adapter#1803

Merged
tt-cll merged 11 commits intomainfrom
tt/fqd
Mar 17, 2026
Merged

FQ dest config in adapter#1803
tt-cll merged 11 commits intomainfrom
tt/fqd

Conversation

@tt-cll
Copy link
Collaborator

@tt-cll tt-cll commented Mar 6, 2026

No description provided.

@tt-cll tt-cll marked this pull request as ready for review March 9, 2026 13:09
@tt-cll tt-cll requested a review from a team as a code owner March 9, 2026 13:09
Copilot AI review requested due to automatic review settings March 9, 2026 13:09
@tt-cll tt-cll requested review from a team as code owners March 9, 2026 13:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR moves FeeQuoter destination-chain default configuration (and default destination gas price) out of user-supplied ChainDefinition literals and into chain-family adapters, with an optional override hook for per-lane tweaks.

Changes:

  • Extend LaneAdapter with GetFeeQuoterDestChainConfig() and GetDefaultGasPrice() and populate these programmatically during ConnectChains.
  • Replace ChainDefinition.FeeQuoterDestChainConfig input with FeeQuoterDestChainConfigOverrides (functional option) and populate FeeQuoterDestChainConfig internally.
  • Update integration tests / changeset tests and devenv helpers to rely on adapter defaults and optional overrides.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
integration-tests/deployment/update_to_FeeQuoter_2_0_test.go Stops manually setting FeeQuoter dest-chain config in test chain definitions.
integration-tests/deployment/lane_migrator_test.go Same as above for lane migrator test setup.
integration-tests/deployment/connect_chains_test.go Adds override helper and updates assertions to use adapter-derived defaults + overrides.
devenv/common/implcommon.go Removes manual default GasPrice/FQ config setup so ConnectChains can populate defaults.
deployment/utils/common.go Factors hex decoding into GetHexFromString helper used by adapters.
deployment/lanes/product.go Extends LaneAdapter interface with default config/gas price methods.
deployment/lanes/lane_update.go Updates ChainDefinition to accept overrides and stores populated FeeQuoter dest config.
deployment/lanes/connect_chains.go Populates defaults via adapter + applies overrides during address population.
chains/solana/deployment/v1_6_0/sequences/adapter.go Implements new adapter default config/gas price methods for Solana.
chains/evm/deployment/v1_6_0/sequences/adapter.go Implements new adapter default config/gas price methods for EVM.
chains/evm/deployment/v1_6_0/changesets/connect_chains_test.go Updates expected config assertions to use adapter defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

agusaldasoro
agusaldasoro previously approved these changes Mar 9, 2026
GetFQAddress(ds datastore.DataStore, chainSelector uint64) ([]byte, error)
GetFeeQuoterDestChainConfig() FeeQuoterDestChainConfig
// GasPrice defines the USD price (18 decimals) per unit gas for this chain as a destination.
GetDefaultGasPrice() *big.Int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, since you are adding this default gas price value, I'm also thinking about if we should provide the default token price as well. This because the existing evm add lane changeset will update the fq destChain config, but we used empty tokenPrice map in our changeset. Doesn't have to be in this PR, but worth adding to TODOs cc @krebernisak @nicolasgnr

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes I think we should

huangzhen1997
huangzhen1997 previously approved these changes Mar 16, 2026
agusaldasoro
agusaldasoro previously approved these changes Mar 17, 2026
@github-actions
Copy link

Metric tt/fqd main
Coverage 70.1% 69.8%

@tt-cll tt-cll added this pull request to the merge queue Mar 17, 2026
Merged via the queue into main with commit e9ff895 Mar 17, 2026
53 of 54 checks passed
@tt-cll tt-cll deleted the tt/fqd branch March 17, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants